
import 'dart:convert';

List<StudentStats> studentStatsFromJson(String str) => List<StudentStats>.from(json.decode(str).map((x) => StudentStats.fromJson(x)));

String studentStatsToJson(List<StudentStats> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class StudentStats {
    StudentStats({
        this.daysInterval,
        this.noOfBookRead,
        this.noOfQuiz,
        this.logInTime,
        this.points,
        this.incentiveTime,
    });

    String? daysInterval;
    int? noOfBookRead;
    int? noOfQuiz;
    int? logInTime;
    int? points;
    int? incentiveTime;

    factory StudentStats.fromJson(Map<String, dynamic> json) => StudentStats(
        daysInterval: json["daysInterval"],
        noOfBookRead: json["noOfBookRead"],
        noOfQuiz: json["noOfQuiz"],
        logInTime: json["logInTime"],
        points: json["points"],
        incentiveTime: json["incentiveTime"],
    );

    Map<String, dynamic> toJson() => {
        "daysInterval": daysInterval,
        "noOfBookRead": noOfBookRead,
        "noOfQuiz": noOfQuiz,
        "logInTime": logInTime,
        "points": points,
        "incentiveTime": incentiveTime,
    };
}
